package com.acminds.fotoporter.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the CLIENT database table.
 * 
 */
@Entity
@Table(name="CLIENT")
public class Client extends com.acminds.fotoporter.persistence.BaseDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="CLIENT_ID")
	private int clientId;

	@Column(name="CLIENT_DESC")
	private String clientDesc;

	@Column(name="CLIENT_NAME")
	private String clientName;

	@Column(name="REGISTERED_NAME")
	private String registeredName;

	@Column(name="YEAR_ESTD")
	private int yearEstd;

	//bi-directional many-to-one association to Location
	@OneToMany(mappedBy="client")
	private List<Location> locations;

	//bi-directional many-to-one association to UserInfo
	@OneToMany(mappedBy="client")
	private List<UserInfo> userInfos;

	//bi-directional many-to-one association to Advertisement
	@OneToMany(mappedBy="client")
	private List<Advertisement> advertisements;

    public Client() {
    }

	public int getClientId() {
		return this.clientId;
	}

	public void setClientId(int clientId) {
		this.clientId = clientId;
	}

	public String getClientDesc() {
		return this.clientDesc;
	}

	public void setClientDesc(String clientDesc) {
		this.clientDesc = clientDesc;
	}

	public String getClientName() {
		return this.clientName;
	}

	public void setClientName(String clientName) {
		this.clientName = clientName;
	}

	public String getRegisteredName() {
		return this.registeredName;
	}

	public void setRegisteredName(String registeredName) {
		this.registeredName = registeredName;
	}

	public int getYearEstd() {
		return this.yearEstd;
	}

	public void setYearEstd(int yearEstd) {
		this.yearEstd = yearEstd;
	}

	public List<Location> getLocations() {
		return this.locations;
	}

	public void setLocations(List<Location> locations) {
		this.locations = locations;
	}
	
	public List<UserInfo> getUserInfos() {
		return this.userInfos;
	}

	public void setUserInfos(List<UserInfo> userInfos) {
		this.userInfos = userInfos;
	}
	
	public List<Advertisement> getAdvertisements() {
		return this.advertisements;
	}

	public void setAdvertisements(List<Advertisement> advertisements) {
		this.advertisements = advertisements;
	}
	
}